package cn.huolabao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="cn-huolabao-model-SysLog")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_log")
public class SysLog implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Integer id;

    @TableField(value = "username")
    @ApiModelProperty(value="")
    private String username;

    @TableField(value = "`operation`")
    @ApiModelProperty(value="")
    private String operation;

    @TableField(value = "link")
    @ApiModelProperty(value="")
    private String link;

    @TableField(value = "exec_time")
    @ApiModelProperty(value="")
    private Integer execTime;

    @TableField(value = "params")
    @ApiModelProperty(value="")
    private String params;

    @TableField(value = "ip")
    @ApiModelProperty(value="")
    private String ip;

    @TableField(value = "create_time")
    @ApiModelProperty(value="")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_USERNAME = "username";

    public static final String COL_OPERATION = "operation";

    public static final String COL_LINK = "link";

    public static final String COL_EXEC_TIME = "exec_time";

    public static final String COL_PARAMS = "params";

    public static final String COL_IP = "ip";

    public static final String COL_CREATE_TIME = "create_time";
}